package com.qf.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**
 * 2019/12/2
 * Administrator
 * springdata1130
 * 面向对象面向君  不负代码不负卿
 */
@Entity
public class Husband {
    @Id
    private Integer husid;
    @Column
    private String husname;

    public Integer getHusid() {
        return husid;
    }

    public void setHusid(Integer husid) {
        this.husid = husid;
    }

    public String getHusname() {
        return husname;
    }

    public void setHusname(String husname) {
        this.husname = husname;
    }

    public Wife getWife() {
        return wife;
    }

    public void setWife(Wife wife) {
        this.wife = wife;
    }

    @OneToOne(mappedBy = "husband")
    private Wife wife;
}
